<?php
header("Content-type: application/json; charset=UTF-8");
include_once "service.php";
$service = new Dcservice();
$json = json_decode(file_get_contents("php://input"));

$result = ['code' => 0, 'msg' => '修改成功!'];
try {
    $service->getxg($json->username, $json->password,$json->PWD);
} catch (Exception $e) {
    $result = ['code' => -1, 'msg' => $e->getMessage()];
}

echo json_encode($result);